| 744 | } |
| 745 | |
| 746 | static int decavcodecaInfo( hb_work_object_t *w, hb_work_info_t *info ) |
| 747 | { |
| 748 | hb_work_private_t *pv = w->private_data; |
| 749 | |
| 750 | memset( info, 0, sizeof(*info) ); |
| 751 | |
| 752 | if ( pv && pv->context ) |
| 753 | { |
| 754 | AVCodecContext *context = pv->context; |
| 755 | info->bitrate = context->bit_rate; |
| 756 | info->rate.num = context->time_base.num; |
| 757 | info->rate.den = context->time_base.den; |
| 758 | info->profile = context->profile; |
| 759 | info->level = context->level; |
| 760 | return 1; |
| 761 | } |
| 762 | return 0; |
| 763 | } |
| 764 | |
| 765 | static int parse_adts_extradata( hb_audio_t * audio, AVCodecContext * context, |
| 766 | AVPacket * pkt ) |