FFmpeg
Functions | Variables
asf.c File Reference
#include "libavutil/mem.h"
#include "asf.h"
#include "demux.h"
#include "id3v2.h"
#include "internal.h"

Go to the source code of this file.

Functions

static int asf_read_picture (AVFormatContext *s, int len)
 
static int get_id3_tag (AVFormatContext *s, int len)
 
int ff_asf_handle_byte_array (AVFormatContext *s, const char *name, int val_len)
 Handles both attached pictures as well as id3 tags. More...
 

Variables

const AVMetadataConv ff_asf_metadata_conv []
 

Function Documentation

◆ asf_read_picture()

static int asf_read_picture ( AVFormatContext s,
int  len 
)
static

Definition at line 51 of file asf.c.

Referenced by ff_asf_handle_byte_array().

◆ get_id3_tag()

static int get_id3_tag ( AVFormatContext s,
int  len 
)
static

Definition at line 129 of file asf.c.

Referenced by ff_asf_handle_byte_array().

◆ ff_asf_handle_byte_array()

int ff_asf_handle_byte_array ( AVFormatContext s,
const char *  name,
int  val_len 
)

Handles both attached pictures as well as id3 tags.

Returns
Returns < 0 on error, 1 if the type of the byte array is unsupported by this function and 0 otherwise.

Definition at line 142 of file asf.c.

Referenced by get_tag(), and process_metadata().

Variable Documentation

◆ ff_asf_metadata_conv

const AVMetadataConv ff_asf_metadata_conv[]
Initial value:
= {
{ "WM/AlbumArtist", "album_artist" },
{ "WM/AlbumTitle", "album" },
{ "Author", "artist" },
{ "Description", "comment" },
{ "WM/Composer", "composer" },
{ "WM/EncodedBy", "encoded_by" },
{ "WM/EncodingSettings", "encoder" },
{ "WM/Genre", "genre" },
{ "WM/Language", "language" },
{ "WM/OriginalFilename", "filename" },
{ "WM/PartOfSet", "disc" },
{ "WM/Publisher", "publisher" },
{ "WM/Tool", "encoder" },
{ "WM/TrackNumber", "track" },
{ "WM/MediaStationCallSign", "service_provider" },
{ "WM/MediaStationName", "service_name" },
{ 0 }
}

Definition at line 28 of file asf.c.

Referenced by asf_read_header(), asf_write_header1(), parse_legacy_attrib(), and write_table_entries_attrib().